#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
void pro(int Level, vector<string>& rec)
{
    if (Level > 2) {
	pro(Level / 2, rec);
    }
    vector<string> tempa;
    for (int i = 0; i < rec.size(); ++i) {
	string temp1 = '(' + (rec[i]) + ',' + (rec[rec.size() - 1 - i]) + ')';
	tempa.push_back(temp1);
    }
    rec = tempa;
}

string findContestMatch(int n)
{
    vector<string> rec;
    for (int i = 1; i <= n / 2; ++i) {
	string temp;
	temp.push_back(i - 0 + '0');
	rec.push_back(temp);
    }
    pro(n,rec);
    return rec[0];
}

int main()
{
}
